package com.dwxt.parabolic.controller;

import com.dwxt.common.base.BaseResult;
import com.dwxt.parabolic.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/parabolic/index")
@RestController
public class IndexController {

    @Autowired
    private IndexService indexService;

    /**
     * 首页展示数据
     * @return
     */
    @RequestMapping("/graph")
    public BaseResult graph(){
        return indexService.graph();
    }
}
